package com.ymm.spark.dao.impl;

import com.ymm.spark.config.JdbcHelper;
import com.ymm.spark.dao.ISessionRandomExtractDAO;
import com.ymm.spark.domain.SessionRandomExtract;

/**
 * @author zhangj
 * @date 2019/11/3
 */
public class ISessionRandomExtractDAOImpl implements ISessionRandomExtractDAO {
	@Override
	public void insert(SessionRandomExtract sessionRandomExtract) {
		String sql = "insert into session_random_extract values(?,?,?,?,?)";
		Object[] params = new Object[]{sessionRandomExtract.getTaskid(),
				sessionRandomExtract.getSessionid(),
				sessionRandomExtract.getStartTime(),
				sessionRandomExtract.getSearchKeywords(),
				sessionRandomExtract.getClickCategoryIds()};
		JdbcHelper.getInstance().executeUpdate(sql, params);
	}
}
